package com.sigmatrix.h5.enums;

import com.sigmatrix.h5.exception.MessageException;

public enum CodeInspectFinalStatus {
	
	NO_FLEE(1,"没有串货"),
	
	FLEE(2,"串货");
	
	public Integer value;
	
	public String name;

	private CodeInspectFinalStatus(Integer value, String name) {
		this.value = value;
		this.name = name;
	}
	
	/**
	 * 判断是否串货。
	 * 
	 * @param input
	 * @return
	 */
	public static boolean isFlee(Integer input){
		if(input==null){
			throw new MessageException("非法入参");
		}
		return input.intValue()>NO_FLEE.value.intValue();
	}
	
	
}
